package com.hava.film.timeline.xmeml.v5.entity;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

import java.util.List;
import java.util.ArrayList;

@JacksonXmlRootElement(localName = "media")
public class Media {

    //一个或者多个元素
    @JacksonXmlProperty(localName = "video")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Video> video = new ArrayList<Video>();

    //一个或者多个元素
    @JacksonXmlProperty(localName = "audio")
    @JacksonXmlElementWrapper(useWrapping = false)
    public List<Audio> audio = new ArrayList<Audio>();

}
